// @ts-ignore

/* eslint-disable */
import { request } from 'umi';
/** 获取当前的用户 GET /api/currentUser */

export async function getList(params, options) {
  return request('/baseApi/collectionMonitor/worktimechart', {
    method: 'GET',
    params: { ...params },
    ...(options || {}),
  });
}

// // 详情
// export async function getDetail(params, options) {
//   return request('/baseApi/collectionitem/getdatatablebyid', {
//     method: 'GET',
//     params: { ...params },
//     ...(options || {}),
//   });
// }

// 类别列表
export async function getTree(params, options) {
  return request('/baseApi/collectioncatalogue/getDataCatalogueList', {
    method: 'GET',
    params: { ...params },
    ...(options || {}),
  });
}

// 库列表
export async function getSourcedataList(params, options) {
  return request('/baseApi/collectiondataresource/getDataResourceList', {
    method: 'GET',
    params: { ...params },
    ...(options || {}),
  });
}
